<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>银行账号</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body>
        <form id="cust_cst_np_bank_team_form">
            <div class="fieldset1 tabel_col tabel_col_s clearFix">
                <div class="caption">
                    <span class="title">账户信息</span>
                </div>
                <div class="fieldBox col_100">
			        <div class="label">银行账号</div>
			          <div class="field">
                         <input type="text" id="crCardNo" name="crCardNo" class="ui-textbox" value="${crCardNo}" validate="{required:true,number:true}">
                          <span class="requiredSymbol">*</span>
                          <a href="javascript:modifyBankAcc()" class="link sq-button sq-button-round" style="margin-left: 10px;"><span>保存</span></a> &nbsp;&nbsp;&nbsp;
			         </div>
			       </div>
            </div>
        </form>
</body>
<script>
    $("#cust_cst_np_bank_team_form").ligerForm({
        validate: true
    });
    function modifyBankAcc(){
        var crCardNo =  $("#crCardNo").val() ;
        var form = liger.get("cust_cst_np_bank_team_form");
        if(null == crCardNo || crCardNo == '' || crCardNo.length > 19 || !form.valid()){
            $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_MUST_FIX_ITEM_INFO_OR_ERR, SQ_type: "warning"});
            return ;
        }
        $.ajax({
            type: 'post',
            dataType: 'json',
            data: {
                paySchId: '${prjPrdPaySchMVO.id}',
                crCardNo: $("#crCardNo").val()
            },
            url: '<%=path%>/capital/capPayInfo/toSaveCorpBankAcc.do',
            beforeSend: function () {
                wait_dialog = $.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING, SQ_type: "waitting"});
            },
            success: function (msg) {
                wait_dialog.close();
                if (msg.success == 1) {
                    top.$.ligerDialog.SQalert({content: msg.info, SQ_type: "success", SQ_showButtons: true,});
                } else {
                    top.$.ligerDialog.SQalert({content: msg.info, SQ_type: "error", SQ_showButtons: true,});
                }
            }
        });
    }
</script>
</html>